
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="js/easyUI/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="flex/swfobject.js"></script>
<script type="text/javascript">
var flashObj = null;
$(function(){
	initFlex();
});

function initFlex(){
	try {
		flashObj = swfobject.getObjectById("imageUpload");
		flashObj.MXMLInitParams({
			url:"/filter/image/imgload",
			jsFunction:"upload",
			filter:"*.jpg;*.png;*.gif",
			method:"post",
			errFunction:"errFunction",
			maxNums:1,
			sizeLimit:1,
			miniMargin:3,
			miniSize:120
		});
		/*var s = "ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss";
		s += s;
		s += s;
		s += s;
		s += "sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss";
		s += "sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss"
		s += s;
		s += s;*/
		//alert(s.length);
		flashObj.MXMLSetParam("albumsId","1234");
	}catch(e){
		if(!flashObj.MXMLInitParams) {
			alert(0);
			setTimeout(initFlex,100);
		}
	}
}

function upload(){
	alert("上传成功");
}

function errFunction(err){
	alert(err);
}

</script>
</head>
<body>
<object id="imageUpload" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="150" height="170" >
	<param name="movie" value="flex/albums.swf" />
	<object type="application/x-shockwave-flash" data="flex/albums.swf" width="150" height="170"> 
	
	</object> 
</object> 
</body>
</html>